package com.akkainaction.mailbox.custommailbox.actor;

import akka.actor.UntypedActor;
import akka.dispatch.RequiresMessageQueue;
import com.akkainaction.mailbox.custommailbox.queue.MQSemantics;

//让Actor实现RequiresMessageQueue接口，泛型为语义接口
public class BusinessActor2 extends UntypedActor implements RequiresMessageQueue<MQSemantics> {

    @Override
    public void onReceive(Object msg) throws Exception {
        System.out.println("BusinessActor2 接收到消息:[" + msg + "]");
    }
}
